/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ch.flagmansworld;

import java.util.ArrayList;

/**
 * A List in which you can search the Package-Name
 * @author Patrick Wachsmuth
 * @version 1.0
 */
public class SearchList extends ArrayList<AppObj> {

    /**
     * Searchs the given Package-Name in the List
     * @param packageName
     * @return result
     */
    public boolean searchName(String packageName) {
        boolean result = false;

        for (int i = 0; i < this.size(); i++) {
            if (this.get(i).getApkPackage().equals(packageName)) {
                result = true;
            }
        }

        return result;
    }
}
